package com.zem.imos.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zem.imos.Entity.Params.ParamsAdmin;
import com.zem.imos.Entity.Params.ParamsDoctor;
import lombok.Data;

@Data
public class Admin {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    private Long userId;
    private Long lastLoginTime;
    public Admin()
    {

    }

    public Admin (ParamsAdmin params)
    {
        this.id = params.getId();
        this.userId = params.getUserId();
        this.lastLoginTime = params.getLastLoginTime();
    }

}
